/*
siderbar-container->elscrool-bar->el-menu->submenu->menu-item
*/
#app {
  .sidebar-container {
    transition: width 0.28s;
    width: 210px !important;
    background-color: #001529;
    height: 100%;
    position: fixed;
    font-size: 0px;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }


    //el-scrollbar 
    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    .svg-icon {
      margin-right: 16px;
    }

    //el menu
    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
      background: #001529;
    }

    //el-submenu    
    .submenu-title-noDropdown,
    .el-submenu__title {      
      color: #bfcbd9 !important;
      &:hover {
        color: #fff !important;
        background:#1f2d3d !important
      }
    }
    .el-menu-item.is-active{
      color: #fff !important;
      background-color: #1890ff !important;
    }
    .is-active>.el-submenu__title {
      color:#fff !important;      
      background-color: #001529 !important;
    }
  
      //menu-item
     .el-menu-item {
      min-width: 210px !important;
      color: #bfcbd9;
      background-color: #000c17 ;

      &:hover {
        color: #fff;
        background-color: #1890ff !important;
      }
    }
  }

  

  .el-menu--collapse .el-menu .el-submenu {
    min-width: 210px !important;
  }


  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {    
    &:hover {
      // you can use $subMenuHover
      background-color: darkcyan !important;
    }
    
  }

  .el-menu-item {
    color: #bfcbd9 !important;
  }

  
  // the scroll bar appears when the subMenu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}
